package com.uuah.server.manager.webapp;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.uuah.server.manager.common.Constants;
import com.uuah.struts.AbstractBaseAction;

public class AppAction extends AbstractBaseAction {
	private static Logger logger = LoggerFactory.getLogger(AppAction.class);

	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}

	public String home() throws Exception {
		logger.debug("to home");
		return "home";
	}

	public String login() throws Exception {
		logger.debug("to login");
		return "login";
	}

	public String doLogin() throws Exception {
		getSession().setAttribute(Constants.CURRENT_LOGIN_USER, "admin");
		return SUCCESS;
	}

	public String logout() throws Exception {
		return "logout";
	}
}
